<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Login Success</title>
</head>

<body>
<h1>Welcome, <span id="username-display"></span>!</h1>
<p>You are now logged in.</p>
<a href="/app/test">Go to Test Page</a>
<script>
    // 获取并显示用户名
    document.getElementById('username-display').innerText = sessionStorage.getItem('username');
</script>
</body>

</html>